package com.common.lib.bean

open class BasicResponse<T> : java.io.Serializable {

    var codes: Int = 0 // 返回的结果标志

    var res // 错误描述
            : String? = null

    var msg // 错误描述
            : String? = null

    var uinfo: T? = null

    var data: T? = null

    var videoinfo: T? = null

    var info: T? = null

    var recordlog: T? = null

    var courselist: T? = null

    var bannerlist: T? = null

    var apklist: T? = null

    var rid: Int = 0

    var mateid: Int = 0

    var brand: T ? =null

    var vinfo: T ? =null

    fun isSuccess(): Boolean {
        return res != null && res.equals("success")
    }

}